package com.llt.impl;

import com.llt.mapper.UserInfoMapper;
import com.llt.pojo.UserInfo;
import com.llt.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Override
    public int addUser(UserInfo userInfo) {
        return userInfoMapper.addUser(userInfo);
    }

    @Override
    public List<UserInfo> userSelectAll() {
        return userInfoMapper.userSelectAll();
    }

    @Override
    public UserInfo userQueryByName(String username) {
        return userInfoMapper.userQueryByName(username);
    }

    @Override
    public Integer deleteAdmin(int id) {
        return userInfoMapper.deleteAdmin(id);
    }
}
